package com.wn.controller;

import com.wn.entity.ResponseEntity;
import com.wn.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
public class MenuController {
    @Autowired
    MenuService menuService;
@RequestMapping("/findAll")
    public ResponseEntity findAll(){
        return menuService.findAll();
    }
}
